package com.uubx.result;

/**
 * Created by zxd on 2020/11/16
 **/
public enum  MessageCode {

    ERROR(50000,"对不起，系统开小差了!"),
    ID_EMPTY(50001,"id不能为空!"),
    USERNAME_EMPTY(50002,"用户名不能为空!"),
    GOODS_STATUS(50003,"不能乱传商品状态哦!"),
    CATEGORY_NOT_EXITS(50004,"商品分类不存在!"),
    BANER_INDEX_QUANTITY(50005,"首页轮播数量有问题!"),
    GOODS_IS_EMPTY(50006,"商品不存在"),
    PASSWORD_EMPTY(50007,"密码不能为空!"),
    LOFIN_EMPTY(50008,"登入失败!"),
    USER_EMPTY(50009,"账号未激活!"),
    INSURANCE_STATUS(50010,"不能乱传状态哦!"),
    INSURANCE_EMPTY(50011,"没有查询的数据哦!"),
    LOFINAA_EMPTY(50012,"该账户已经登入"),
     PHONE_IS_EMPTY(60001,"电话号码不能为空"),
    PAGE_IS_EMPTY(60002,"页数不能为空"),
    LIMIT_IS_EMPTY(60003,"分页大小不能为空"),
    DEPARTMENT_NAME_EMPTY(60004,"部门名字为空"),
    SELECT_EMPTY(60005,"没有找到内容，请重新输入"),
    STATUS_ERROR(60006,"状态为未启用，不能重复停用"),
    DEPARTMENT_NOT_EMPTY(60007,"该部门仍存在人员，请将人员转移部门后，才能操作该部门"),
    NAME_EMPTY(60008,"名字不能为空"),
    PAGE_ERROR(60009,"page不能小于1"),
    REDIS_IS_EMPTY(60010,"redis中没有数据"),
    PERMISSION_IS_EMPTY(666666,"当前用户无权限访问该资源"),
    ODER_EMPTY(70011,"没有查询的数据哦!"),
    ODER_ID(70000,"id为空")

    ;


    //错误编码
    private Integer code;

    //错误信息
    private String message;

    MessageCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
